/**
 * Project: com-zjy-test
 * 
 * File Created at 2013-11-13
 * 
 * Copyright 2012 Greenline.com Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Greenline Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Greenline.com.
 */
package org.xukai.dal.datasource;

/**
 * @Type DbContextHolder
 * @Desc
 * @author jianyun.zheng
 * @date 2013-11-13
 * @Version V1.0
 */
public class DbContextHolder {
    private static final ThreadLocal<String> contextHolder = new ThreadLocal<String>();

    public static void setDbName(String dbName) {
        contextHolder.set(dbName);
    }

    public static String getDbName() {
        return contextHolder.get();
    }

    public static void clearDbName() {
        contextHolder.remove();
    }

}
